<template>
  <a-result status="404" title="404" sub-title="对不起，你访问的页面不存在">
    <template #extra>
      <a-button type="primary">返回首页</a-button>
    </template>
  </a-result>
</template>

<script lang="ts" setup>
  import { onMounted } from 'vue';
  import { useRouter } from 'vue-router';
  // import PptxGenJS from 'pptxgenjs';
  const { replace } = useRouter();

  onMounted(() => {
    // 1. Create a new Presentation
    // let pres = new PptxGenJS()
    // 2. Add a Slide
    // let slide = pres.addSlide()
    // 3. Add one or more objects (Tables, Shapes, Images, Text and Media) to the Slide
    // let textboxText = 'Hello World from PptxGenJS!'
    // let textboxOpts = { x: 1, y: 1, color: '363636' }
    // slide.addText(textboxText, textboxOpts)
    // 4. Save the Presentation
    // pres.writeFile()
  });
</script>
